/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bonc.common.bean;

/**
 * 错误信息类
 * @author song
 */
public class ResultMessage {
    
     private String msg;
     
     private boolean success;
     
     private Object  result;
     
     public ResultMessage(boolean success,String msg){
         this.msg =  msg;
         this.success = success;
     }
     
     public ResultMessage(boolean success,String msg,Object result){
         this.msg =  msg;
         this.success = success;
         this.result = result;
     }

    /**
     * @return the errorMsg
     */
    public String getMsg() {
        return msg;
    }

    /**
     * @param errorMsg the errorMsg to set
     */
    public void setErrorMsg(String msg) {
        this.msg = msg;
    }

    
    /**
     * @return the success
     */
    public boolean isSuccess() {
        return success;
    }

    /**
     * @param success the success to set
     */
    public void setSuccess(boolean success) {
        this.success = success;
    }

    /**
     * @return the result
     */
    public Object getResult() {
        return result;
    }

    /**
     * @param result the result to set
     */
    public void setResult(Object result) {
        this.result = result;
    }
     
    
}
